package com.ciaojian.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Atlakyn
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("d_marketing_scan")
public class MarketingScan extends Model<MarketingScan> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("背景图")
    private String image;

    @ApiModelProperty("券或券包ID")
    private Integer couponId;

    @ApiModelProperty("券或券包 0券 1券包")
    private Integer coupon;

    @ApiModelProperty("跳转路径")
    private String url;

    @ApiModelProperty("二维码")
    private String qrCode;

    @ApiModelProperty("0未删除 1已删除")
    private Boolean isDelete;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
